<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/9/2
 * Time: 15:33
 */

namespace app\common\model;

use think\Model;
use think\Db;

class Wechat extends Model
{
    //微信小程序
    public function mini_config($header = '')
    {

        $config = [
            'app_id' => 'wx10dbf84c62a916f2',
            'app_secret' => 'c4a6915b9d2253d761d3cb0e76404c16',
            'map_key' => 'SMRBZ-MQBKO-PR5WE-SVCFC-SBJBQ-TNFMQ',
            'uniacid' => 2,
            'wxkey' => '12345678909876543210123456789098',
            'mchkey' => '12345678909876543210123456789098',
            'mchid' => "1702478872",
            'is_yuepay' => 0,
            'is_jfpay' => 0,
        ];

        $config['title'] = "泊车充电";
        $config['link_logo'] = "";
        $config['tel'] = "13681588997";
        return $config;
    }

    //随机订单号
    public function order_sn()
    {
        return date('YmdHis') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
    }


}